<table cellpadding="2" cellspacing="1" width="98%">

	<tr> 
      <td>默认播放器</td>
      <td><?php
	  pc_base::load_sys_class('form', '', 0);
	  $playerlists = array('0'=>'请选择默认播放器');
	  $this->player = pc_base::load_model('player_model');
	  $playerlist = $this->player->select(array('disabled'=>0),'playerid,subject','50','playerid DESC');
	  foreach((array)$playerlist AS $k=>$v){
	  $playerlists[$v['playerid']] = $v['subject'];
	  }
	  echo form::select($playerlists,$setting['defaultplayer'],'name="setting[defaultplayer]"');
	  ?></td>
    </tr>

	<tr> 
      <td>允许上传的视频类型</td>
      <td><input type="text" name="setting[upload_allowext]" value="<?php echo $setting['upload_allowext'];?>" size="40" class="input-text"></td>
    </tr>

	<tr> 
      <td>是否从已上传中选择</td>
      <td><input type="radio" name="setting[isselectimage]" value="1" <?php if($setting['isselectimage']) echo 'checked';?>> 是 <input type="radio" name="setting[isselectimage]" value="0" <?php if(!$setting['isselectimage']) echo 'checked';?>> 否</td>
    </tr>


	<tr> 
      <td>是否缓冲下一集</td>
      <td><input type="radio" name="setting[nextvideo]" value="1" <?php if($setting['nextvideo']) echo 'checked';?>> 是 <input type="radio" name="setting[nextvideo]" value="0" <?php if(!$setting['nextvideo']) echo 'checked';?>> 否</td>
    </tr>
	<tr> 
      <td>自动导航到下一集</td>
      <td><input type="radio" name="setting[nexturl]" value="1" <?php if($setting['nexturl']) echo 'checked';?>> 是 <input type="radio" name="setting[nexturl]" value="0" <?php if(!$setting['nexturl']) echo 'checked';?>> 否</td>
    </tr>
	<tr> 
      <td>内容页直接播放</td>
      <td><input type="radio" name="setting[contentplay]" value="1" <?php if($setting['contentplay']) echo 'checked';?> onclick="$('#playhtml').hide(300);"> 是 <input type="radio" name="setting[contentplay]" value="0" <?php if(!$setting['contentplay']) echo 'checked';?> onclick="$('#playhtml').show();"> 否    注:设置为 是 则内容页直接播放视频,以下静态化设置将无效!</td>
    </tr>


	<tr> 
      <td>允许同时上传的个数</td>
      <td><input type="text" name="setting[upload_number]" value="<?php echo $setting['upload_number'];?>" size=3></td>
    </tr>

	
		<tr> 
      <td>文本框高度(px)</td>
      <td><input type="text" name="setting[textheight]" value="<?php echo $setting['textheight'];?>" size=3> 一行一个视频地址,视频格式为名称$地址,如 第1集$a.rmvb,也可直接视频地址,默认用第?集的模式填充</td>
    </tr>

		<tr> 
      <td>播放页是否生成静态?</td>
      <td>
<input type="radio" name="setting[ishtml]" value="1" <?php if($setting['ishtml']) echo 'checked';?> onclick="$('#playhtml').show();"> 是 <input type="radio" name="setting[ishtml]" value="0" <?php if(!$setting['ishtml']) echo 'checked';?> onclick="$('#playhtml').hide(300);"> 否

	  </td>
    </tr>
<tbody id="playhtml" style="display:<?php echo $setting['ishtml']?'':'none';?>">
	<tr> 
      <td>静态播放页文件扩展名</td>
      <td>
<input type="text" name="setting[fileext]" value="<?php echo $setting['fileext'];?>" size=5> (fileext)
	  </td>
    </tr>

	<tr> 
      <td>静态播放页url连接符</td>
      <td>
<input type="text" name="setting[ljf]" value="<?php echo $setting['ljf'];?>" size=5> (ljf)
	  </td>
    </tr>

			<tr> 
      <td>静态播放页url规则</td>
      <td>
	  <input type="radio" name="setting[purl]" value="1" <?php if($setting['purl']) echo 'checked';?>> 字段名 ljf 集数.fileext
	  <input type="radio" name="setting[purl]" value="0"  <?php if(!$setting['purl']) echo 'checked';?>> 集数.fileext
	  </td>
    </tr>
</tbody>
</table>